<?php

require_once "ISessionManager.php";
require_once "IUserMapper.php";

class Adapter {

//     private $_userVO = null;
//     private $_adapterString = null;

    static private $_userMapper = null;
    static private $_sessionManager = null;

//     private function _getAdapterString() {

//     }

    static public function getUserMapper() {
        if (!self::$_userMapper) {
            require_once 'default/UserMapper.php'; // FIXME
            self::$_userMapper = new Default_UserMapper(); // FIXME
        }
        return self::$_userMapper;
    }

    static public function getSessionManager() {
        if (!self::$_sessionManager) {
            require_once 'default/SessionManager.php'; // FIXME
            self::$_sessionManager = new Default_SessionManager(); // FIXME
        }
        return self::$_sessionManager;
    }

}